{% extends "admin/layout.html" %}

{% block css %}
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename="jwplayer/skins/stormtrooper.css")}}">
{% endblock %}

{% block content %}
<section class="content-header">
            <h1>微电影管理系统</h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 预告管理</a></li>
                <li class="active">添加预告</li>
            </ol>
        </section>
<section class="content" id="showcontent">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">添加预告</h3>
                </div>
                <form role="form" method="post" enctype="multipart/form-data">
                    <div class="box-body">
                        {% include "admin/layout/flash_message.html" %}
                        <div class="form-group">
                            <label for="input_title">预告标题</label>
                            {{ form.title }}
                            {% include "admin/layout/title_error.html" %}
                        </div>
                        <div class="form-group">
                            <label for="input_logo">预告封面</label>
                            {{ form.logo }}
                            <img data-src="holder.js/700x320" style="margin-top:5px;" class="img-responsive"
                                 alt="">
                            {% include "admin/layout/logo_error.html" %}
                        </div>
                    </div>
                    <div class="box-footer">
                        {{ form.csrf_token }}
                        {{ form.submit }}
                    </div>
                </form>
            </div>
        </div>
    </div>
</section>
{% endblock %}

{% block js %}
    <script>
        $(function(){
            $('#a-4').addClass("active");
            $('#a-4-1').addClass("active");
        })
    </script>
{% endblock %}